package com.guigu.xm.wp.mapper;

import com.guigu.xm.pojo.SCell;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface SCellMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SCell record);

    int insertSelective(SCell record);

    SCell selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SCell record);

    int updateByPrimaryKey(SCell record);

    SCell selectPid(SCell sCell);

    @Update("delete from s_cell where product_id=#{name}")
    int delPid(String name);

    int updatePid(SCell sCell);

    @Select("select* from s_cell")
    List<SCell> queryAll();
}